package com.zhang.strategy.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-02-26 16:22
 * To: 真常应物，真常得性，常清常静，常清静矣
 */

// 定义一个锦囊，具体的锦囊妙计在这里具体使用那个锦囊
public class Context {
    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }
    public void operate(){
        this.strategy.operate();
    }
}
